import React from 'react'

 function children({user,callback}) {
    console.log('children执行了')
    function changename(){

        callback('李四')
    }


  return (
    <div>children 名字:{user.name} <button onClick={changename}>修改名字</button></div>
  )
}
export default  React.memo(children)